package org.pms.test;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Map;

public class Main {

    public static Map<String,String> parseMap(String urlParams) {
        Map<String,String> map = new HashMap<String,String>() ;
        String[] arr = urlParams.split("&");
        for (String kvs:arr) {
            String[] kv = kvs.split("=");
            map.put(kv[0],kv[1]) ;
        }
        return map ;
    }

    public static void main(String[] args) throws UnsupportedEncodingException {
        String str = "%E9%98%BF%E8%90%A8%E5%BE%B7%E6%88%BF" ;

        String s = URLDecoder.decode(str,"UTF-8") ;

        System.out.println(s);
    }
}
